<template>
    <div style="background-color: white;height: 550px;padding-left: 10px;padding-top: 5px;margin-top: 10px">
      <br>
      <el-button type="primary" round @click="submit">确认提交</el-button>
      <br>
      <br>
        <el-table
          :data="tableData"
          border
          style="width: 100%">
          <el-table-column
            prop="vehicleId"
            label="派车单号"
            width="150">
          </el-table-column>
          <el-table-column
            prop="transType"
            label="运输类型"
            width="120">
          </el-table-column>
          <el-table-column
            prop="route"
            label="路线"
            width="120">
          </el-table-column>
          <el-table-column
            prop="creatiomTime"
            label="创建时间"
            width="120">
          </el-table-column>
          <el-table-column
            prop="appointedTime"
            label="指派时间"
            width="300">
          </el-table-column>
          <el-table-column
            prop="cartypeName"
            label="车辆类型"
            width="120">
          </el-table-column>
          <el-table-column
            prop="carrierName"
            label="承运商"
            width="120">
          </el-table-column>
          <el-table-column
            prop="carPlate"
            label="车辆"
            width="120">
          </el-table-column>
          <el-table-column
            prop="arrivalDate"
            label="到达日期"
            width="120">
          </el-table-column>
          <el-table-column
            prop="nodeCurrent"
            label="当前节点"
            width="120">
          </el-table-column>
        </el-table>
    </div>
</template>

<script>
    export default {
      name: "rbasicinfo",
      data(){
        return {
          tableData: [],
          orderId:''
        }

      },
      methods:{
        load(){
          this.$http({
            method: "GET",
            url: "http://localhost:8090/tLogistics",
          }).then(resp => {
            console.log(resp);
            this.tableData=resp.data.data.log;
          })
        },
        getAId(){
          this.orderId=this.$route.params.id;
        },
        submit(){
          this.$http({
            method: "GET",
            url: "http://localhost:8090/tOrder/submit",
          }).then(resp => {
            alert(resp.data.msg);
            location.reload();
          });
        }
      },
      created() {
        this.getAId();
        this.load();
      }
    }
</script>

<style scoped>

</style>
